www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\adminCollection\class_add.asp

    <!--#include file="inc/conn.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="Admin_ChkPurview.asp"-->
<%
Dim Rs,Sql,action,ttt
dim channelname,channelshortname
action =request("action")
if action="添加新频道" then
	ttt=""
elseif action="添加" then
	if request.form("ChannelName")="" or request.form("ChannelShortName")="" then
		ttt="<font color=red>请填写完整!</font>"
	else
		sql = "insert into Pe_Channel (ChannelName,ChannelShortName) values ('" & request.form("ChannelName") & "','" & request.form("ChannelShortName") &"')"
		conn.execute(sql)
		Call CloseConn()
		Call CloseConnItem()
		response.redirect("class_index.asp")
		response.end
	end if	
else
	Call CloseConn()
	Call CloseConnItem()
	response.redirect("class_index.asp")
	response.end
end if
%>

<html>
<head>
<title>采集系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="Admin_Style.css">
<style type="text/css">
.ButtonList {
	BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #ffffff 2px solid; BORDER-LEFT: #ffffff 2px solid; CURSOR: default; BORDER-BOTTOM: #999999 2px solid; BACKGROUND-COLOR: #e6e6e6
}
</style>
<SCRIPT language=javascript>
    function unselectall(thisform){
        if(thisform.chkAll.checked){
            thisform.chkAll.checked = thisform.chkAll.checked&0;
        }   
    }
    function CheckAll(thisform){
        for (var i=0;i<thisform.elements.length-6;i++){
            var e = thisform.elements[i];
            if (e.Name !="chkAll"&&e.disabled!=true)
                e.checked = thisform.chkAll.checked;
        }
    }
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
  <tr class='topbg'> 
    <td height="22" colspan="2" align="center" ><strong>本 地 数 据 分 类 管 理</strong></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
  <tr class="tdbg"> 
    <td width="65" height="30"><strong>管理导航:</strong></td>
    <td height="30"><a href=class_index.asp>管理首页</a> | 添加频道</td>
  </tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border" >
    <tr> 
      <td height="22" colspan="2" class="title"> <div align="center"><b></b></div></td>
    </tr>
</table>
<table class="border" border="0" cellspacing="1" width="100%" cellpadding="0">
    <TR> 
      <TD height=22  align=center class=ButtonList>请输入以下项目</TD>
    </TR>
</TABLE>
  <form name="myform" method="POST" action="class_add.asp">
<div align="center"> <%=ttt%>
  <p>频道名称:<strong>
    <input name="ChannelName" type="text" size="50" maxlength="50">
    </strong></p>
  <p>频道说明: 
    <input name="ChannelShortName" type="text" size="50" maxlength="250">
  </p>
  <p> 
    <input name="action" type="submit" id="action" value="添加">&nbsp;&nbsp;
    <input name="action" type="submit" id="action" value="返回">
  </p>
  <!--#include file="Admin_ItemFoot.asp"-->
</div>
  </form>
</body>
</html>
<%
Call CloseConn()
Call CloseConnItem()
%>